/*!
    \file    change log.txt
    \brief   change log for GD32F310C EVAL Demo Suites

    \version 2026-01-01, V2.6.0, demo for GD32F3x0
*/

/*
    Copyright (c) 2026, GigaDevice Semiconductor Inc.

    Redistribution and use in source and binary forms, with or without modification, 
are permitted provided that the following conditions are met:

    1. Redistributions of source code must retain the above copyright notice, this 
       list of conditions and the following disclaimer.
    2. Redistributions in binary form must reproduce the above copyright notice, 
       this list of conditions and the following disclaimer in the documentation 
       and/or other materials provided with the distribution.
    3. Neither the name of the copyright holder nor the names of its contributors 
       may be used to endorse or promote products derived from this software without 
       specific prior written permission.

    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 
OF SUCH DAMAGE.
*/

******************* V2.6.0 2026-01-01 ************************************************************************************
______________________Common______________________________________________________________________________________________
Fix file:
..\Projects\all demos\GD32EBuilder_project

fix reason:
Add GD32EBuilder_project project.

V2.5.0:
none

V2.6.0:
Add GD32EBuilder_project project.
__________________________________________________________________________________________________________________________
______________________Common______________________________________________________________________________________________
Fix file:
..\04_USART_Printf\main.c
..\Projects\08_I2C_EEPROM\main.c
..\Projects\11_RCU_Clock_Out\main.c
..\Projects\14_RTC_Calendar\main.c

fix reason:
Deleted int fputc(int ch, FILE *f) function.

V2.5.0:
/* retarget the C library printf function to the USART */
int fputc(int ch, FILE *f)
{
    usart_data_transmit(EVAL_COM, (uint8_t)ch);
    while(RESET == usart_flag_get(EVAL_COM, USART_FLAG_TBE));
    return ch;
}

V2.6.0:
none
__________________________________________________________________________________________________________________________
______________________gd32f310c_eval.c____________________________________________________________________________________
Fix file:
..\Utilities\gd32f310c_eval.c

fix reason:
Add int __io_putchar(int ch) function.

V2.5.0:
none

V2.6.0:
#if defined(__GNUC__) && !defined(__clang__)/* For GNU GCC compiler */
/* retarget the C library printf function to the USART, in Eclipse GCC environment */
int __io_putchar(int ch)
{
    usart_data_transmit(EVAL_COM, (uint8_t) ch );
    while(RESET == usart_flag_get(EVAL_COM, USART_FLAG_TBE));
    return ch;
}
#else
/* retarget the C library printf function to the USART */
int fputc(int ch, FILE *f)
{
    usart_data_transmit(EVAL_COM, (uint8_t)ch);
    while(RESET == usart_flag_get(EVAL_COM, USART_FLAG_TBE));

    return ch;
}
#endif /* defined(__GNUC__) && !defined(__clang__) */
__________________________________________________________________________________________________________________________
______________________07_ADC_conversion_triggered_by_timer________________________________________________________________
Fix file:
..\Projects\07_ADC_conversion_triggered_by_timer\main.c

fix reason:
ADD timer_struct_para_init and timer_channel_output_struct_para_init functions.

V2.5.0:
none

V2.6.0:
    timer_struct_para_init(&timer_initpara);
    timer_channel_output_struct_para_init(&timer_ocintpara);
__________________________________________________________________________________________________________________________
______________________08_I2C_EEPROM_______________________________________________________________________________________
Fix file:
..\Projects\08_I2C_EEPROM\Soft_Drive\i2c.h

fix reason:
Adapt to EB projects.

V2.5.0:
#define I2C0_SPEED              400000

V2.6.0:
#define I2C0_SPEED              100000
__________________________________________________________________________________________________________________________
______________________09_SPI_Quad_Flash___________________________________________________________________________________
Fix file:
..\Projects\09_SPI_Quad_Flash\Soft_Drive\gd25qxx.c

fix reason:
Deleted int spi_quad_io23_output_enable function.

V2.5.0:
    /* enable quad wire SPI_IO2 and SPI_IO3 pin output */
    spi_quad_io23_output_enable(SPI1);

V2.6.0:
none
__________________________________________________________________________________________________________________________
______________________10_SPI_TFT_LCD_Driver_______________________________________________________________________________
Fix file:
..\Projects\10_SPI_TFT_LCD_Driver\Soft_Drive\tft_test.c

fix reason:
Adapt to EB projects.

V2.5.0:
     for(i = 0;i < 10;i ++){
         gui_draw_font_num32(50 + (i % 3) * 40,32 * (i / 3) + 50, WHITE,BLUE,num[i + 1]);
         delay_1ms(100);
     }

V2.6.0:
     for(i = 0;i < 10;i ++){
         gui_draw_font_num32(50 + (i % 3) * 40,32 * (i / 3) + 50, WHITE,BLUE,num[i]);
         delay_1ms(100);
     }
__________________________________________________________________________________________________________________________
______________________11_RCU_Clock_Out_________________________________________________________________________________
Fix file:
..\Projects\11_RCU_Clock_Out\gd32f3x0_it.c
..\Projects\11_RCU_Clock_Out\main.c

fix reason:
Adapt to EB projects.

V2.5.0:
uint8_t g_button_press_flag = 0;

extern uint8_t g_button_press_flag;

V2.6.0:
__IO uint8_t g_button_press_flag = 0;

extern __IO uint8_t g_button_press_flag;
__________________________________________________________________________________________________________________________
